package edu.zut.cs.software.person.customer.domain;

/**
 * 
 *Customer purchase information
 */
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.zut.cs.software.teach.Base.domain.BaseEntity;

/**
 * @author wenmanke
 *
 */

@Entity
@Table(name = "T_Customer")
public class Customer extends BaseEntity<Long> {

	private static final long serialVersionUID = -2411978175041541798L;
	/**
	 * purchase commodity name
	 */
	@Column
	String name;
	/**
	 * purchase commodity id
	 */
	@Column
	Long id;
	/**
	 * purchase commodity price
	 */
	@Column
	String price;
	/**
	 * purchase commodity number
	 */
	@Column
	String number;
	
	@ManyToOne
	@JoinColumn(name = "T_CustomerCategory_ID")
	CustomerCategory customerCategory;
	
	public CustomerCategory getCustomerCategory() {
		return customerCategory;
	}

	public void setCustomerCategory(CustomerCategory customerCategory) {
		this.customerCategory =customerCategory;
	}
	
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
	
}

